//
//  GeneralSettingController.m
//  CMJWeibo
//
//  Created by BH on 16/1/8.
//
//

#import "GeneralSettingController.h"
#import "CMJCommonArrowItem.h"
#import "CMJCommonLabelItem.h"
#import "CMJCommonSwitchItem.h"
#import "CMJCommonGroup.h"
#import "PictureQualityController.h"

@interface GeneralSettingController ()

@end

@implementation GeneralSettingController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title = @"通用设置";
    
    [self setupItems];
}

-(void)setupItems
{
    //0组
    CMJCommonLabelItem *read = [CMJCommonLabelItem itemWithTitle:@"阅读模式"];
    read.text = @"有图模式";
    
    CMJCommonLabelItem *fontSize = [CMJCommonLabelItem itemWithTitle:@"字号大小"];
    fontSize.text = @"中";
    
    CMJCommonSwitchItem *remark = [CMJCommonSwitchItem itemWithTitle:@"显示备注"];
    
    CMJCommonGroup *group0 = [self addGroup];
    group0.items = @[read,fontSize,remark];
    
    //1组
    CMJCommonLabelItem *picture = [CMJCommonLabelItem itemWithTitle:@"图片浏览设置"];
    picture.text = @"自适应";
    picture.destVc = [PictureQualityController class];
    
    CMJCommonLabelItem *video = [CMJCommonLabelItem itemWithTitle:@"视频自动播放"];
    video.text = @"仅wifi";
    
    CMJCommonGroup *group1 = [self addGroup];
    group1.items = @[picture,video];
    
    //2组
    CMJCommonSwitchItem *voice = [CMJCommonSwitchItem itemWithTitle:@"声音"];
    
    CMJCommonGroup *group2 = [self addGroup];
    group2.items = @[voice];
    
    //3组
    CMJCommonLabelItem *language = [CMJCommonLabelItem itemWithTitle:@"多语言环境"];
    language.text = @"跟随系统";
    
    CMJCommonGroup *group3 = [self addGroup];
    group3.items = @[language];
}

@end
